<?php

class Core_Form_Admin_Mailtemplate_Edit extends Form
{
	function init()
	{
		$this -> addChild('text', 'title', array(
			'label' => 'Title',
			'validators' => array('required')
		));

		$this -> addChild('text', 'name', array(
			'label' => 'name',
			'validators' => array('required')
		));

		$this -> addChild('text', 'subject', array(
			'label' => 'Subject',
			'validators' => array('required')
		));

		$this -> addChild('textarea', 'body_text', array(
			'label' => 'Body Text',
			'validators' => array('required')
		));

		$this -> addChild('textarea', 'body_html', array(
			'label' => 'Body Html',
			'validators' => array('required')
		));

		$this -> addChild('group', 'buttons');
		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
